From d9146bbdd48a9624380884afd55e1c5933844b73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Wed, 2 Jul 2014 06:20:13 +0200 Subject: [PATCH] babl: make malloc implementation stability sanity check non-fatal --- babl/babl-memory.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/babl/babl-memory.c b/babl/babl-memory.c index 6ceca90..ff171d7 100644 --- a/babl/babl-memory.c +++ b/babl/babl-memory.c @@ -91,7 +91,9 @@ functions_sanity (void) } else { - babl_fatal ("babl memory function(s) attempted switched on the fly"); + fprintf (stderr, "HMM....\nSomething strange is happening,\n%s function pointer changing between invocations in babl.\n", + first_malloc_used == malloc_f ? + first_free_used == free_f ? "malloc and free" : "malloc" : "free"); } } } -- 2.30.2